﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="RSManageNewsLetter.aspx.cs" Inherits="mojoPortal.Web.RS.SBM.NewsLetter.RSManageNewsLetter" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/rs/controls/modalactionmessagecontrol.ascx" TagName="ModalActionMessageControl" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
<asp:HiddenField id="hfSelectedContactId" runat="server"/>

<center>
<asp:UpdateProgress ID="UpdateProgress" runat="server" >
<ProgressTemplate>
    <asp:Image ID="imgLoading" runat="server" ImageUrl="~/RS/Images/loading-spiral.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
</center>

<asp:HiddenField ID="hfNewsLetterId" runat="server" />
<asp:HiddenField ID="hfIsTemplate" runat="server" />
<asp:Panel ID="pnlBodyEditor" runat="server" >
    <table>
    <tr>
    <td align="right">Templates:</td>
    <td><asp:DropDownList ID="ddlTemplates" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTemplate_OnSelectedIndexChanged"></asp:DropDownList></td>
    <td align="right">News Letter:</td>
    <td><asp:DropDownList ID="ddlNewsLetters" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlNewsLetter_OnSelectedIndexChanged"></asp:DropDownList></td>
    </tr>
    </table>
    

    <asp:RequiredFieldValidator ID="RequiredField_txtNewsLetterTitle" runat="server" ErrorMessage="Title Required" ControlToValidate="txtNewsLetterTitle" ValidationGroup="NewsLetterValidationGroup" ForeColor="Red" ></asp:RequiredFieldValidator>
    <br />
    News Letter Title:<asp:TextBox ID="txtNewsLetterTitle" runat="server" Width="300px"></asp:TextBox>
    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" Visible="false" ValidationGroup="NewsLetterValidationGroup" />
    <asp:Button ID="btnPreview" runat="server" Text="Preview" Visible="false" />
    <asp:Button ID="btnSendNewLetter" runat="server" Text="Send News Letter" OnClick="btnSendNewLetter_Click" Visible="false" />

    
    <telerik:RadEditor ID="RadEditor1" runat="server" Height="700px" Width="100%">
    </telerik:RadEditor>
</asp:Panel>
<uc1:ModalActionMessageControl ID="ucModalActionMessageControl" runat="server" />

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>
